package com.lhj.bootdemo.designmode.prototype;

/**
 * @author lhj
 * @version 1.0
 * @date 2022/5/13 2:10 下午
 * @description: 具体的原型类：正方形
 */

public class Square extends Shape {

    public Square() {
        super.type = "Square";
    }

    @Override
    void draw() {
        System.out.println("Inside Square::draw() method.");
    }
}
